<template>
  <div>
    <header class="header">
      <div class="hdbox">
        <div class="logo">
          <img
            src="http://www.100tal.com/uploads/file_material/20191120/1574227134d15fe27b500a4bfc.png"
            alt=""
          />
        </div>
        <ul class="nav">
          <router-link exact tag="li" to="/">首页</router-link>
          <router-link tag="li" to="/about">关于我们</router-link>
          <router-link tag="li" to="/eduction">教育科技</router-link>
          <router-link tag="li" to="/money">战略投资</router-link>
          <router-link tag="li" to="/society">社会责任</router-link>
          <router-link tag="li" to="/news">新闻中心</router-link>
        </ul>
        <div class="hedIco">
          <span></span>
          <span>EN</span>
          <span></span>
        </div>
      </div>
    </header>
    <main>
      <router-view></router-view>
    </main>
  </div>
</template>

<script>
export default {}
</script>

<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
ul {
  list-style: none;
}
.router-link-active {
  color: #0077c0;
}
.header {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0;
  z-index: 100;
  background: url('http://www.100tal.com/images/opacity-90.png');
  .hdbox {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .logo {
      img {
        width: 170px;
      }
    }
    .nav {
      display: flex;
      margin-left: 200px;
      li {
        margin: 0 20px;
        cursor: pointer;
        &:hover {
          color: #0077c0;
        }
      }
    }
    .hedIco {
      span {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #000;
        margin-left: 20px;
        float: left;
        text-align: center;
        line-height: 40px;
        &:nth-child(1) {
          background: url('http://www.100tal.com/images/icon-search.png')
            no-repeat center center/24px;
        }

        &:nth-child(3) {
          background: url('http://www.100tal.com/images/icon-li.png') no-repeat
            center center/24px;
        }
      }
    }
  }
}
</style>
